﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Fabrikalariniz.aspx.cs" Inherits="Fabrikatorum.Fabrikator.Sayfa.Fabrikalariniz" %>

    <form id="form1" runat="server">
<div class="row">
    <div id="breadcrumb" class="col-md-12">
        <ol class="breadcrumb">
            <li><a href="Default.aspx#Sayfa/Anasayfa.aspx" class="ajax-link"><i class="fa fa-home"></i> <span class="hidden-xs"> Ana Sayfa</span></a></li>
            <li><a href="Default.aspx#Sayfa/Fabrikalariniz.aspx" class="ajax-link"><i class="fa fa-building-o"></i> <span class="hidden-xs"> Fabrikalarınız</span></a></li>
        </ol>
       
    </div>
</div>
<div class="row">
    <div class="col-xs-12 text-center page-404">
        <h3>Fabrikalarınız</h3>
    </div>
</div>
        <div class="row">
            <asp:ListView ID="ListView1" runat="server">
    <ItemTemplate>
                    	<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
		<div class="box">
			<div class="box-header">
				<div class="box-name">
					<i class="fa fa-building-o"></i>
					<span><%# Eval("BinaAdi")%> <small> - Ürün: <%# Eval("BinaUrunAdi")%></small></span>
				</div>
				<div class="box-icons">
					<a class="collapse-link">
						<i class="fa fa-chevron-up"></i>
					</a>
					<a class="expand-link">
						<i class="fa fa-expand"></i>
					</a>
					<a class="close-link">
						<i class="fa fa-times"></i>
					</a>
				</div>
				<div class="no-move"></div>
			</div>
			<div class="box-content">
                <table class="table">
                    <tr>
                        <td style="width:30%"><img src="Resim/<%# Eval("BinaResimNo")%>.jpg" class="img-responsive img-rounded" /></td>
                        <td style="width:30%"></td>
                        <td>
    <div id="bar-1" class="bar-main-container azure" data-toggle="tooltip"  title="Bina Seviyesi: <%# Eval("BinaSeviyesi")%>">
    <div class="wrap">
              <div class="bar-iconu"><span class="fa fa-signal"></span></div>
      <div class="bar-percentage" data-percentage="<%# (Convert.ToInt32(Eval("BinaSeviyesi"))*4)+1%>"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-5" class="bar-main-container red" data-toggle="tooltip"  title="İşçi Sayısı: <%# Convert.ToInt32(Eval("BirIsciSayisi")) + Convert.ToInt32(Eval("IkiIsciSayisi")) + Convert.ToInt32(Eval("UcIsciSayisi"))%>">
    <div class="wrap">
      <div class="bar-iconu"><span class="fa fa-user"></span></div>
      <div class="bar-percentage" data-percentage="<%# Convert.ToInt32(((Convert.ToDecimal(Convert.ToInt32(Eval("BirIsciSayisi")) + Convert.ToInt32(Eval("IkiIsciSayisi")) + Convert.ToInt32(Eval("UcIsciSayisi")))*100)/Convert.ToDecimal(Eval("BinaIsciKapasitesi"))))+1%>"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-4" class="bar-main-container yellow" data-toggle="tooltip"  title="Bina Teknoloji: <%# Eval("TeknolojiSeviye")%>">
    <div class="wrap">
      <div class="bar-iconu"><span class="fa fa-dashboard"></span></div>
      <div class="bar-percentage" data-percentage="<%# ((Convert.ToInt32(Eval("TeknolojiSeviye")))*4)+1%>"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-2" class="bar-main-container emerald" data-toggle="tooltip"  title="Bir Sonraki Bakım Tarihi: <%#Eval("BinaBakimTarihi")%>">
    <div class="wrap"> 
              <div class="bar-iconu"><span class="fa fa-cog"></span></div>
      <div class="bar-percentage" data-percentage="<%#Convert.ToInt32((Convert.ToDecimal((Convert.ToDateTime(Eval("BinaBakimTarihi")).Ticks-DateTime.Now.Ticks)/36000000000)/720)*100) %>"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-3" class="bar-main-container violet" data-toggle="tooltip"  title="Üretilen Ürün Kalitesi: <%#Eval("BinaUrunKalitesi")%>">
    <div class="wrap">
              <div class="bar-iconu"><span class="fa fa-barcode"></span></div>
      <div class="bar-percentage" data-percentage="<%# Convert.ToInt32( Eval("BinaUrunKalitesi"))+1%>"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
<a href="Default.aspx#Sayfa/FabrikaYonetim.aspx?FN=<%# Eval("FabrikaNo")%>" class="ajax-link"><strong>Fabrika Yönetim</strong></a>
                        </td>
                    </tr>
                </table>
			</div>
		</div>
	</div>
        </ItemTemplate></asp:ListView>
<%--            	<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
		<div class="box">
			<div class="box-header">
				<div class="box-name">
					<i class="fa fa-building-o"></i>
					<span>Cam Fabrikası</span>
				</div>
				<div class="box-icons">
					<a class="collapse-link">
						<i class="fa fa-chevron-up"></i>
					</a>
					<a class="expand-link">
						<i class="fa fa-expand"></i>
					</a>
					<a class="close-link">
						<i class="fa fa-times"></i>
					</a>
				</div>
				<div class="no-move"></div>
			</div>
			<div class="box-content">
                <table class="table">
                    <tr>
                        <td style="width:30%"><img src="Resim/10.jpg" class="img-responsive img-rounded" /></td>
                        <td style="width:30%"></td>
                        <td>
    <div id="bar-1" class="bar-main-container azure" data-toggle="tooltip"  title="Bina Seviyesi: 10">
    <div class="wrap">
              <div class="bar-iconu"><span class="fa fa-signal"></span></div>
      <div class="bar-percentage" data-percentage="20"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-5" class="bar-main-container red" data-toggle="tooltip"  title="İşçi Sayısı: 22">
    <div class="wrap">
      <div class="bar-iconu"><span class="fa fa-user"></span></div>
      <div class="bar-percentage" data-percentage="55"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-4" class="bar-main-container yellow" data-toggle="tooltip"  title="Bina Teknoloji:22">
    <div class="wrap">
      <div class="bar-iconu"><span class="fa fa-dashboard"></span></div>
      <div class="bar-percentage" data-percentage="55"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-2" class="bar-main-container emerald" data-toggle="tooltip"  title="Bir Sonraki Bakım Tarihi: 55">
    <div class="wrap"> 
              <div class="bar-iconu"><span class="fa fa-cog"></span></div>
      <div class="bar-percentage" data-percentage="55"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-3" class="bar-main-container violet" data-toggle="tooltip"  title="Üretilen Ürün Kalitesi: 55">
    <div class="wrap">
              <div class="bar-iconu"><span class="fa fa-barcode"></span></div>
      <div class="bar-percentage" data-percentage="15"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
<a href="Default.aspx#Sayfa/forms_elements.html?FN=12" class="ajax-link"><strong>Fabrika Yönetim</strong></a>
                        </td>
                    </tr>
                </table>
			</div>
		</div>
	</div>
            	<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
		<div class="box">
			<div class="box-header">
				<div class="box-name">
					<i class="fa fa-building-o"></i>
					<span>Cam Fabrikası</span>
				</div>
				<div class="box-icons">
					<a class="collapse-link">
						<i class="fa fa-chevron-up"></i>
					</a>
					<a class="expand-link">
						<i class="fa fa-expand"></i>
					</a>
					<a class="close-link">
						<i class="fa fa-times"></i>
					</a>
				</div>
				<div class="no-move"></div>
			</div>
			<div class="box-content">
                <table class="table">
                    <tr>
                        <td style="width:30%"><img src="Resim/10.jpg" class="img-responsive img-rounded" /></td>
                        <td style="width:30%"></td>
                        <td>
    <div id="bar-11" class="bar-main-container azure" data-toggle="tooltip"  title="Bina Seviyesi: 10">
    <div class="wrap">
              <div class="bar-iconu"><span class="fa fa-signal"></span></div>
      <div class="bar-percentage" data-percentage="20"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-15" class="bar-main-container red" data-toggle="tooltip"  title="İşçi Sayısı: 22">
    <div class="wrap">
      <div class="bar-iconu"><span class="fa fa-user"></span></div>
      <div class="bar-percentage" data-percentage="55"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-14" class="bar-main-container yellow" data-toggle="tooltip"  title="Bina Teknoloji:22">
    <div class="wrap">
      <div class="bar-iconu"><span class="fa fa-dashboard"></span></div>
      <div class="bar-percentage" data-percentage="55"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-12" class="bar-main-container emerald" data-toggle="tooltip"  title="Bir Sonraki Bakım Tarihi: 55">
    <div class="wrap"> 
              <div class="bar-iconu"><span class="fa fa-cog"></span></div>
      <div class="bar-percentage" data-percentage="55"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
    <div id="bar-13" class="bar-main-container violet" data-toggle="tooltip"  title="Üretilen Ürün Kalitesi: 55">
    <div class="wrap">
              <div class="bar-iconu"><span class="fa fa-barcode"></span></div>
      <div class="bar-percentage" data-percentage="15"></div>
      <div class="bar-container">
        <div class="bar"></div>
      </div>
    </div>
  </div>
<a href="Default.aspx#Sayfa/forms_elements.html?FN=11" class="ajax-link"><strong>Fabrika Yönetim</strong></a>
                        </td>
                    </tr>
                </table>
			</div>
		</div>
	</div>--%>
<%--            <%=sehirdeneme %>--%>
</div>
    </form>
<script type="text/javascript">
$(document).ready(function () {
    // Drag-n-Drop feature
    WinMove();
    $('.bar-percentage[data-percentage]').each(function () {
        var progress = $(this);
        var percentage = Math.ceil($(this).attr('data-percentage'));
        $({ countNum: 0 }).animate({ countNum: percentage }, {
            duration: 5000,
            easing: 'linear',
            step: function () {
                // What todo on every count
                var pct = Math.floor(this.countNum) + '%';
                progress.text(pct) && progress.siblings().children().css('width', pct);
            }
        });
    });
    $('[data-toggle=tooltip]').tooltip();
    $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
        e.target // activated tab
        e.relatedTarget // previous tab
    });
});
</script>